<?php foreach($model as $data): ?>
<div class="post" style="clear:both;overflow: auto;padding-bottom: 10px;">
	<div class="title">
		<h3><?php echo CHtml::link($data->title, $data->url); ?></h3>
	</div>
	<div class="content">
		<?php if (isset($data->imageId)) 
                    {
                    $filename = Yii::app()->image->getUrl($data->imageId, 'small');
                    echo CHtml::image($filename, 'image', array('class'=>'postimage'));
                    }?>
		<?php
                $this->beginWidget('CMarkdown', array('purifyOutput'=>true));
                echo $data->intro;
                echo '&nbsp;'.CHtml::link(Yii::t('site', 'read more'), $data->url);
                $this->endWidget();
		?>
	</div>
</div>
<?php endforeach; ?>